home *** CD-ROM | disk | FTP | other *** search
/ Revista do CD-ROM 101 / CD-ROM 101.iso / compl / maya5ple / Install_MayaPLE5_English.exe / Maya / Data1.cab / buildSelectMaskMM.mel < prev    next >
Encoding:
Text File  |  2003-07-17  |  2.5 KB  |  84 lines

  1. // Copyright (C) 1997-2002 Alias|Wavefront,
  2. // a division of Silicon Graphics Limited.
  3. //
  4. // The information in this file is provided for the exclusive use of the
  5. // licensees of Alias|Wavefront.  Such users have the right to use, modify,
  6. // and incorporate this code into other products for purposes authorized
  7. // by the Alias|Wavefront license agreement, without fee.
  8. //
  9. // ALIAS|WAVEFRONT DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
  10. // INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
  11. // EVENT SHALL ALIAS|WAVEFRONT BE LIABLE FOR ANY SPECIAL, INDIRECT OR
  12. // CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
  13. // DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
  14. // TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
  15. // PERFORMANCE OF THIS SOFTWARE.
  16. //
  17. //
  18. //  Alias|Wavefront Script File
  19. //  MODIFY THIS AT YOUR OWN RISK
  20. //
  21. //  Creation Date:  17 June 1997
  22. //
  23. //  Author:         gf
  24. //
  25. //  Description:
  26. //      This implements the Selection Polygon Marking Menu.
  27. //
  28.  
  29.  
  30.  
  31. global proc doSelectMaskMMenu() 
  32. {
  33.  
  34.     menuItem -rp "N" -l "NURBS Mask" -ecr false 
  35.         -c "setSelectMode nurbsModeling NURBS";
  36.     menuItem -rp "NE" -l "Hierarchy" -ecr false 
  37.         -c "setSelectMode hierarchy Hierarchy";
  38.     menuItem -rp "E" -l "Animation Mask" -ecr false 
  39.         -c "setSelectMode animation Animation";
  40.     menuItem -rp "SE" -l "Deformations Mask" -ecr false 
  41.         -c "setSelectMode deformations Deformations";
  42.     menuItem -rp "S" -l "Dynamics Mask" -ecr false 
  43.         -c "setSelectMode dynamics Dynamics";
  44.     menuItem -rp "SW" -l "Polygons Mask" -ecr false 
  45.         -c "setSelectMode polyModeling Polygons";
  46.     menuItem -rp "W" -l "Rendering Mask" -ecr false 
  47.         -c "setSelectMode rendering Rendering";
  48.  
  49.     // If in component mode then switch to Object, any
  50.     // other mode (object, hierarchy, preset) go to 
  51.     // component.
  52.     menuItem -rp "NW" -l "Object/Components" -ecr false 
  53.         -c "if ( `selectMode -q -component` ) { setSelectMode objects Objects; } \
  54.              else { setSelectMode components Components; }";
  55.  
  56.     setParent -m ..;
  57. }
  58.  
  59.  
  60. global proc buildSelectMaskMM()
  61. //
  62. // Creates a marking menu that allows the user
  63. // to select Selection Maks. It reuses
  64. // the name tempMM for the name of the menu, to
  65. // ensure that there's only one of these at
  66. // any one time.
  67. {
  68.     if( `popupMenu -exists tempMM` )
  69.     {
  70.         deleteUI tempMM;
  71.     }
  72.  
  73.     global string $gSelect;
  74.     setToolTo $gSelect;
  75.  
  76.     popupMenu -mm 1 -b 1 -aob 1 -p viewPanes -pmc "doSelectMaskMMenu" tempMM;
  77.  
  78. }
  79.  
  80.  
  81.  
  82.  
  83.  
  84.